<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 字体相关样式 */
        div {
            /* 样式 */
            /* font-style: italic; */
            /* 粗细 100-900*/
            font-weight: bold;
            font-weight: 500;
            /* 字体大小 */
            font-size: 50px;
            line-height: 100px;
            font-family: '宋体';
        }
        h1{
            text-align: center;
        }
        .div1{
            text-indent: 2em;

        }
        a{
            text-decoration: none;
        }
        
    </style>

</head>
<body>
    <h1>字体相关样式</h1>
    <a href="#">超链接</a>

    <div>
        字体div1
    </div>
    <div class="div1">
        字体div2
    </div>
    <p>段落</p>
</body>
</html>